import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import {h} from 'vue';
import {Switch} from 'ant-design-vue';

export const columns: BasicColumn[] = [
        {
            title: '权限标识',
            dataIndex: 'authority',
            width: 200,
        },
        {
            title: '菜单资源ID',
            dataIndex: 'menuId',
            width: 200,
        },
        {
            title: 'API资源ID',
            dataIndex: 'apiId',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'actionId',
            width: 200,
        },
        {
            title: '状态',
            dataIndex: 'status',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'createTime',
            width: 200,
        },
        {
            title: '',
            dataIndex: 'updateTime',
            width: 200,
        },
];

export const searchFormSchema: FormSchema[] = [
];

export const formSchema: FormSchema[] = [
        {
            label: '权限标识',
            field: 'authority',
            component: 'Input',
            required: true,
        },
        {
            label: '菜单资源ID',
            field: 'menuId',
            component: 'Input',
            required: true,
        },
        {
            label: 'API资源ID',
            field: 'apiId',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'actionId',
            component: 'Input',
            required: true,
        },
        {
            label: '状态',
            field: 'status',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'createTime',
            component: 'Input',
            required: true,
        },
        {
            label: '',
            field: 'updateTime',
            component: 'Input',
            required: true,
        },
];
